<?php

$reporte = new Campania;
$reporteData = $reporte->generateColumnFormularioCampania($id);
?>
<?php if (!empty($reporteData['series'][0]['data'])): ?>
    <?php

    $this->Widget('ext.highcharts.HighchartsWidget', array(
        'scripts' => array(
            'modules/exporting', // adds Exporting button/menu to chart
        ),
        'options' => $reporteData
    ));
    ?>
<?php endif; ?>

<?php

$this->widget('bootstrap.widgets.TbButton', array(
    'icon' => ' icon-folder-open',
    'label' => Yii::t('AweCrud.app', 'Historial'),
    'htmlOptions' => array('href' => Yii::app()->baseUrl . '/nosey/default/historialEntidad/entidad_tipo/'.Campania::model()->tableName().'/entidad_id/' . $id)
));
?>